package com.device.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 设备运行状态
 * @Author: jeecg-boot
 * @Date:   2024-06-07
 * @Version: V1.0
 */
@Data
@TableName("pudong_device_status")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)

public class PudongDeviceStatus implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    private String id;


	/**设备号*/

    private String deviceNo;
	/**设备最近上线时间*/

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")

    private Date deviceOnlineTime;
	/**设备最近离线时间*/

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")

    private Date deviceOfflineTime;
	/**停用次数*/

    private Integer offlineSum;
	/**停用时长 单位秒*/
    private String offlineTime;

	/**传输中断次数*/
    private Integer transmissionInterruptionTimes;
	/**设备状态*/ //0在线 1离线
    private Integer deviceStatus;
}
